const path = require('path');
const fs = require('fs');

let combiePath = path.join(__dirname, "/../libs/oimo.d.ts");
let buffer = fs.readFileSync(combiePath);

let combieResult = "";
let str = buffer.toString();
let result = str.match(/class \S+/gm);
for (let i = 0; i < result.length; ++i) {
    combieResult += result[i].substr(6) + ",\n";
}
result = str.match(/enum \S+/gm);
for (let i = 0; i < result.length; ++i) {
    combieResult += result[i].substr(5) + ",\n";
}
console.log(combieResult);